/**
 * Author:  huangyucong <huangyucong@sensetime.com>
 * Created: 17-12-8
 */

package com.sw.bbs.common.common;

public enum ErrorCode {
    // 成功
    SUCCESS(0, "success"),

    // 未知错误
    UNKNOWN(10000, "unknown"),

    // 系统内部错误
    INTERNAL_SERVER_ERROR(20000, "internal server error"),

    // 接口参数错误
    REQUEST_PARAMETER_ERROR(30000, "request parameter error"),

    // 业务服务异常
    BUSINESS_SERVER_ERROR(40000, "business server error");



    private int code;
    private String msg;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
